package test;

import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/**
 * Created by MtRider on 2021/10/25 21:29
 */
public class Reflect {
    private String name;
    private int age;

    private Reflect(int age){
        this.age=age;
    }

    public Reflect(String name){
        this.name=name;
    }

    private void speak(String name){
        System.out.println("my name is "+name);
    }

}
